home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
11587
/
11587.xpi
/
chrome
/
aviary.jar
/
content
/
options.xul
< prev
next >
Wrap
Extensible Markup Language
|
2009-08-14
|
6KB
|
139 lines
<?xml version="1.0"?>
<!-- Copyright (c) 2008-2009 Pearl Crescent, LLC. All Rights Reserved. -->
<!-- vim: set sw=2 sts=2 ts=8 et syntax=xml: -->
<?xml-stylesheet href="chrome://global/skin/global.css"?>
<?xml-stylesheet href="chrome://aviary/skin/options.css"?>
<!DOCTYPE prefwindow SYSTEM "chrome://aviary/locale/extension.dtd">
<prefwindow id="aviaryPrefsWindow" title="&prefsWindow.title;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
windowtype="aviary:prefs"
screenX="50"
screenY="50"
persist="screenX screenY"
buttons="accept,cancel"
onload="doInitialize();">
<script type="application/x-javascript"
src="chrome://aviary/content/pearlutil.js"/>
<script type="application/x-javascript"
src="chrome://aviary/content/util.js"/>
<script type="application/x-javascript"><![CDATA[
function doInitialize()
{
const kAuthServiceCID = "@aviary.com/aviary-auth;1";
var authService = Components.classes[kAuthServiceCID]
.getService(Components.interfaces.aviaryIAuth);
gAviaryUtil.HideInactiveTools(authService.toolsList);
// If pref. says item should be on a toolbar but it is not, reset pref.
try
{
var opener = window.opener;
while (opener &&
opener.document.documentElement
.getAttribute("windowtype") != "navigator:browser")
{
opener = opener.opener;
}
if (opener)
{
var tbItem = opener.document
.getElementById("aviary-captureimageofpage");
if (!tbItem)
{
const kTBItemLocationPref = "aviary.toolbarItem.location";
var pearlUtil = com.aviary.talon.pearlutil;
var locPref = pearlUtil.GetASCIIPref(kTBItemLocationPref);
if (locPref && ("status-bar" != locPref))
pearlUtil.SetASCIIPref(kTBItemLocationPref, "");
}
}
} catch(e) {}
}
]]>
</script>
<prefpane id="aviary-prefpane">
<script type="application/x-javascript"
src="chrome://global/content/nsWidgetStateManager.js" />
<script type="application/x-javascript"
src="chrome://browser/content/nsPrefWindow.js" />
<preferences>
<preference id="pref-toolbarItemLoc" type="string"
name="aviary.toolbarItem.location" />
<preference id="pref-defaultImageEditor" type="int"
name="aviary.defaultImageEditor" />
<preference id="pref-defaultCaptureType" type="int"
name="aviary.defaultCaptureType" />
</preferences>
<grid flex="1">
<columns><column/><column/></columns>
<rows>
<row align="center">
<hbox pack="end">
<label control="menulist-toolbarItemLoc">&prefsTBItemLocation.label;</label>
</hbox>
<menulist id="menulist-toolbarItemLoc"
preference="pref-toolbarItemLoc">
<menupopup>
<menuitem label="&prefsTBItemLocationNavBar.label;"
value="nav-bar"/>
<menuitem label="&prefsTBItemLocationStatusBar.label;"
value="status-bar"/>
<menuitem label="&prefsTBItemLocationNotShown.label;"
value=""/>
</menupopup>
</menulist>
</row>
<row align="center">
<hbox pack="end">
<label control="menulist-defaultCaptureType">&prefsCaptureType.label;</label>
</hbox>
<menulist id="menulist-defaultCaptureType"
preference="pref-defaultCaptureType">
<menupopup>
<menuitem label="&aviaryCaptureImageOfPageRegion.label;"
value="0"/>
<menuitem label="&aviaryCaptureImageOfPageVisible.label;"
value="1"/>
<menuitem label="&aviaryCaptureImageOfPageFull.label;"
value="2"/>
</menupopup>
</menulist>
</row>
<row align="center">
<hbox pack="end">
<label control="menulist-defaultImageEditor">&prefsEditor.label;</label>
</hbox>
<menulist id="menulist-defaultImageEditor"
preference="pref-defaultImageEditor">
<menupopup>
<menuitem id="aviary-falcon" label="&aviaryFalcon.label;"
aviary-tid="20" value="20"/>
<menuitem id="aviary-phoenix" label="&aviaryPhoenix.label;"
aviary-tid="1" value="1"/>
<menuitem id="aviary-toucan" label="&aviaryToucan.label;"
aviary-tid="2" value="2"/>
<menuitem id="aviary-peacock" label="&aviaryPeacock.label;"
aviary-tid="3" value="3"/>
<menuitem id="aviary-raven" label="&aviaryRaven.label;"
aviary-tid="4" value="4"/>
<menuitem id="aviary-hummingbird" label="&aviaryHummingbird.label;"
aviary-tid="5" value="5"/>
<menuitem id="aviary-woodpecker" label="&aviaryWoodpecker.label;"
aviary-tid="14" value="14"/>
</menupopup>
</menulist>
</row>
</rows>
</grid>
</prefpane>
</prefwindow>